package com.example.easyexcel.exports.custom_export;

import com.example.easyexcel.exports.custom_export.CustomFormulation.CustomFormulationExportService;
import com.example.easyexcel.exports.custom_export.CustomFormulation.ExportDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 定制化导出
 **/
@RestController
@RequestMapping("custom/export")
public class CustomExportController {
    @Autowired
    CustomFormulationExportService customFormulationExportService;

    /**
     * 定制导出：制剂配方
     **/
    @PostMapping("customFormulation")
    public void customFormulationExport(@RequestBody ExportDto exportDto) {
        customFormulationExportService.export(exportDto);
    }
}
